using Magiq.Behaviors;

namespace Magiq.Delete
{
    public class DefaultDeleteBehavior : DefaultBehavior, IDeleteBehavior
    {
        #region IDeleteBehavior Members

        public int Execute(IDeleteStrategy strategy)
        {
            return strategy.Execute();
        }

        public IDeleteStrategy GetDeleteStrategy<T>(IDelete<T> delete) where T : class
        {
            return Magiq.ForDelete(delete);
        }

        #endregion
    }
}